/**
 * Created by Administrator on 2017/7/3.
 */
var DorApp=angular.module('DorApp', ['ng','ui.router','DorController']);


var DorController=angular.module('DorController',[]);

DorApp.config(function($stateProvider,$urlRouterProvider){
    $urlRouterProvider.when('','/car');
    //$urlRouterProvider.when('','/car_manage');

  $stateProvider
     //.state('index',{
     //     url:'/index',
     //     templateUrl:'../public/index.html'
     // })
      .state('car',{
            url:'/car',
            templateUrl:'../public/tpl/car.html'
            //controller:'indexController'
        })
     .state('car_manage',{
          url:'/car_manage',
          templateUrl:'../public/tpl/car_manage.html'
          //controller:'indexController'
      })
    .state('ship',{
          url:'/ship',
          templateUrl:'../public/tpl/ship.html'
      })
});

//DorController.controller('indexController',['$scope','$location',function($scope,$location){
//    console.log('indexController');
//}]);


